import request from '@/config/axios'

export interface ZonePriceVO {
  id: number
  area: string
  cellName: string
  valuation: number
}

// 查询区域-小区-评估价记录列表
export const getZonePricePage = async (params) => {
  return await request.get({ url: `/hutai/zone-price/page`, params })
}

// 查询区域-小区-评估价记录详情
export const getZonePrice = async (id: number) => {
  return await request.get({ url: `/hutai/zone-price/get?id=` + id })
}

// 新增区域-小区-评估价记录
export const createZonePrice = async (data: ZonePriceVO) => {
  return await request.post({ url: `/hutai/zone-price/create`, data })
}

// 修改区域-小区-评估价记录
export const updateZonePrice = async (data: ZonePriceVO) => {
  return await request.put({ url: `/hutai/zone-price/update`, data })
}

// 删除区域-小区-评估价记录
export const deleteZonePrice = async (id: number) => {
  return await request.delete({ url: `/hutai/zone-price/delete?id=` + id })
}

// 导出区域-小区-评估价记录 Excel
export const exportZonePrice = async (params) => {
  return await request.download({ url: `/hutai/zone-price/export-excel`, params })
}
